#include <stdio.h>

int main(int argc, char* argv[])
{
	float iArr[4];
	AssignValuesToArray(iArr, 4);
	printReversedArray(iArr, 4);

      return 0;
}

int printReversedArray(float *iArr, int size)
{
	printf("The scores in reverse order are: \n");
        int i = 0;
        for(i=size-1; i>=0; i--)
        {
   		printf("%.2f\n", iArr[i]);
	}	
}

int AssignValuesToArray(float *iArr, int size)
{
        int i = 0;
        for(i=0; i<size; i++)
        { 
		printf("Enter four floats: \n"); 
		scanf("%f", &iArr[i]); 
        }           
}

